package lab02.Test11;

public class Rectangle implements Printx {
        double width, height;
    public double getArea(){
        double area=width*height;
        return area;
    }
    public double getAroundLong(){
        double AroundLong=(width*height)*2.0;
        return AroundLong;
    }

    @Override
    public void printMyWay(){
        System.out.println("面积是："+getArea()+"周长是："+getAroundLong());
    }
}
